﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocationInquiryResult.aspx.cs" Inherits="com.vs.RF.Web.inventory.LocationInquiryResult" MasterPageFile="~/RF.Master" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="com.vs.DataAccess" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">

    <script type="text/javascript">
       
        var iNumOfSubmit = 0;

        function btnPrev_Click() {
            if (iNumOfSubmit > 0)
                return;
                
            iNumOfSubmit++;
            form1.hdAction.value = "Prev";
            form1.submit();
        }

        function btnNext_Click() {
          if (iNumOfSubmit > 0)
              return ;
             iNumOfSubmit--;
             form1.hdAction.value = "Next";
             form1.submit();
         }
        
        function btnReturn_Click(){
           form1.action = "LocationInquiryEntry.aspx";
            form1.submit();
        }

        function on_Load() {
            
        }
    </script>
    
    <%=stErrorMessage %>
    <form id="form1" action="LocationInquiryResultHandling.aspx" method="post">
    <div>
        <table>
            <tr><td colspan="2">共 <font class="inverseColor"><%= this.iTotal %></font> 条记录，当前显示第 <font class="inverseColor"><%= this.iIndex + 1 %></font> 条</td></tr>
           <tr>
                <td>货品：</td>
                <td><input type="text" name="tbItem" class="greyRed" value="<%=this.liDO.ITEM %>" readonly="readonly" /></td>
                </tr>
            
              <tr>
                <td>名称：</td>
                <td><input type="text" name="tbItemDesc" class="greyRed" value="<%=this.liDO.ITEM_DESC %>" readonly="readonly" /></td>
            </tr>
            <tr>
                <td>库位：</td>
                <td><input type="text" name="tbLoc" class="greyRed" value="<%=this.liDO.LOCATION %>" readonly="readonly"/></td>
            </tr> 
           <tr>
                <td>LPN：</td>
                <td><input type="text" name="tbLPN" class="greyRed" value="<%=this.liDO.LPN %>" readonly="readonly"/></td>
            </tr>
           <tr>
                <td>在库数量：</td>
                <td><input type="text" name="tbQty" class="greyRed" value="<%=this.liDO.ON_HAND_QTY %>" readonly="readonly"/><%= this.liDO.QUANTITY_UM %></td>
            </tr>
           <tr>
                <td>属性1：</td>
                <td><input type="text" name="tbAttr1" class="greyRed" value="<%=this.liDO.ATTRIBUTE1 %>" readonly="readonly"/></td>
            </tr>
           <tr>
                <td>属性2：</td>
                <td><input type="text" name="tbAttr2" class="greyRed" value="<%=this.liDO.ATTRIBUTE2 %>" readonly="readonly"/></td>
            </tr>
        </table>
        <input type="hidden" name="hdAction" />
    </div>    
    <div id="footer">  
        <input type="button" id="btnPrevious" value="上一条" onclick="btnPrev_Click()" class="greyRed" />
        <input type="button" id="btnNext" value="下一条" onclick="btnNext_Click()" class="greyRed" />
        <input type="button" id="btnReturn" value="返回" onclick="btnReturn_Click()" class="greyRed"/>
    </div>
    </form>
    
    <script type="text/javascript" language="javascript">
    <%
        if (bAtBeginning){
    %>
        form1.btnPrevious.disabled = true;
    <% 
        }
      
        if (bAtEnd){
    %>
        form1.btnNext.disabled = true;
    <% 
        }
    %>
    </script>
</asp:Content>